package com.sam.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 这是api
 *
 * @author sam-02
 */
@RestController
@SpringBootApplication
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }


    /**
     * 第一个请求
     *
     * @return String
     */
    @GetMapping("")
    public Object index() {
        return "我是 api 模块!";
    }
}
